home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / Skeleton / UCommandSkeleton.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  1.1 KB  |  47 lines  |  [TEXT/MPS ]

  1. // UCommandSkeleton.h
  2. // Copyright © 1991-96 by Apple Computer, Inc. All rights reserved. 
  3.  
  4. #ifndef __UCOMMANDSKELETON__
  5. #define __UCOMMANDSKELETON__
  6.  
  7. #ifndef __UCOMMAND__
  8. #include "UCommand.h"
  9. #endif
  10.  
  11. //----------------------------------------------------------------------------------------
  12. // Forward and external classes
  13. //----------------------------------------------------------------------------------------
  14.  
  15. class TDocumentSkeleton;
  16.         
  17. //----------------------------------------------------------------------------------------
  18. // TCommandSkeleton
  19. //----------------------------------------------------------------------------------------
  20.  
  21. class TCommandSkeleton: public TCommand
  22. {
  23.     MA_DECLARE_CLASS;
  24.  
  25.   public:
  26.     TDocumentSkeleton* fDocumentSkeleton;
  27.     
  28.     TCommandSkeleton(); 
  29.         // Constructor
  30.         
  31.     virtual ~TCommandSkeleton();
  32.         // Destructor
  33.     
  34.     virtual void ICommandSkeleton(CommandNumber itsCommandNumber,
  35.                                   TDocumentSkeleton* itsDocumentSkeleton);
  36.     
  37.     // Commands
  38.     virtual void DoIt(); // Override
  39.     
  40.     virtual void UndoIt(); // Override
  41.     
  42.     virtual void RedoIt(); // Override
  43.         
  44. };
  45.  
  46. #endif
  47.